package org.yoyo.classroom.service;

import org.apache.ibatis.annotations.Param;
import org.yoyo.classroom.domain.po.BookingDTO;
import org.yoyo.classroom.domain.po.BookingOrder;

import java.time.YearMonth;

public interface BookingRecordService {


    /**
     * 统计用户当月的预约次数
     * @param userId 用户ID
     * @param yearMonth 年月
     * @return 当月预约次数
     */
    int countUserMonthlyBookings(Long userId, YearMonth yearMonth);

    BookingOrder findConflictingOrders(BookingDTO bookingDTO);

}
